<template>
	<view class="box">
		<view class="img">
			<image :src="item.picurl"
				mode="aspectFill" 
				></image>
		</view>
		
		<view class="desc">
			<view class="title">{{item.title}}</view>
			<view class="text">{{item.author}}</view>
			<view class="text">{{item.posttime}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"newsbox",
		data() {
			return {
				
			};
		},
		props:["item"]
	}
</script>

<style lang="scss" scoped>
.box{
	border-bottom: 1rpx dotted lightgray;
	margin-bottom: 10rpx;
	padding-left: 8rpx;
	display: flex;
	
	.img{
		width: 230rpx;
		height: 160rpx;
		image{
			width: 100%;
			height: 100%;
		}
	}
	.desc{
		flex:1;
		padding-left: 20rpx;
		.title{
			padding-left: 20rpx;
			font-size: 40rpx;
			margin-bottom: 10rpx;
		}
		.text{
			padding-left: 20rpx;
			padding-top: 10rpx;
			font-size: 15rpx;
		}
	}
	
}
</style>